<!DOCTYPE html>
<!-- saved from url=(0052)http://www.1611.com/index.php/Admin/Admin/index.html -->
<html><!-- Mirrored from www.zi-han.net/theme/hplus/table_basic.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:20:01 GMT --><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>H+ 后台主题UI框架 - 基础表格</title>
    <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">

    <link rel="shortcut icon" href="http://www.1611.com/index.php/Admin/Admin/favicon.ico"> <link href="./bootstrap.min14ed.css" rel="stylesheet">
    <link href="./font-awesome.min93e3.css" rel="stylesheet">
    <link href="./custom.css" rel="stylesheet">
    <link href="./animate.min.css" rel="stylesheet">
    <link href="./style.min862f.css" rel="stylesheet">
    <link href="./page.css" rel="stylesheet">
    <link href="./sweetalert.css" rel="stylesheet">
    <link href="./layer.css" rel="stylesheet">
    <link href="./laypage.css" rel="stylesheet">
    <style>
        #litpic{width: 60px;height: 60px;}
    </style>
<link rel="stylesheet" href="./layer.css" id="layui_layer_skinlayercss"><link type="text/css" rel="stylesheet" href="./laypage(1).css" id="laypagecss"></head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>管理员列表</h5>
                </div>
                <div class="ibox-content">
                    <div class="row m-b-sm m-t-sm">
                        <div class="col-md-2">
                            <a class="btn btn-primary btn-outline active" href="http://www.1611.com/index.php/Admin/admin/add.html" aria-pressed="true"><i class="fa fa-user-plus"></i>添加成员</a>
                        </div>
                        <form method="get" action="http://www.1611.com/index.php/Admin/Admin/index.html">
                            <div class="col-md-5">
                                <div class="input-group">
                                    <input type="text" name="inquery" placeholder="请输入管理员名称" class="input-sm form-control" value="">
                                    <span class="input-group-btn"><button type="submit" class="btn btn-sm btn-primary"> <i class="fa fa-search"></i>搜索</button> </span>
                                </div>
                            </div>
                        </form>
                    </div>
                    <table class="table table-bordered">
                        <thead>
                            <tr>
                                <th>ID</th>
                                <th>用户名</th>
                                <th>真实姓名</th>
                                <th>头像</th>
                                <th>分组</th>
                                <th>登陆次数</th>
                                <th>IP</th>
                                <th>登录时间</th>
                                <th>状态:正常/禁用</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                    <td>82</td>
                                    <td>123123</td>
                                    <td>123</td>
                                    <td><img src="./1492992732.jpeg" id="litpic"></td>
                                    <td>超级管理员</td>
                                    <td>0</td>
                                    <td>127.0.0.1</td>
                                    <td>1970-01-01 08:00:00</td>
                                                                            <td><a class="btn btn-primary btn-rounded" href="javascript:changeAdmin(82)" id="status82"><i class="fa fa-check"></i>正常</a></td>
                                                                                                                    <td><a class="btn btn-danger btn-rounded" href="javascript:delAdmin(82)"><i class="fa fa-trash"></i>删除</a> <a class="btn btn-info btn-rounded" href="http://www.1611.com/index.php/Admin/admin/edit/id/82.html"><i class="fa fa-edit"></i>修改</a></td>                                </tr><tr>
                                    <td>81</td>
                                    <td>12345</td>
                                    <td>23456</td>
                                    <td><img src="./1492958614.jpeg" id="litpic"></td>
                                    <td>超级管理员</td>
                                    <td>0</td>
                                    <td>127.0.0.1</td>
                                    <td>1970-01-01 08:00:00</td>
                                                                            <td><a class="btn btn-primary btn-rounded" href="javascript:changeAdmin(81)" id="status81"><i class="fa fa-check"></i>正常</a></td>
                                                                                                                    <td><a class="btn btn-danger btn-rounded" href="javascript:delAdmin(81)"><i class="fa fa-trash"></i>删除</a> <a class="btn btn-info btn-rounded" href="http://www.1611.com/index.php/Admin/admin/edit/id/81.html"><i class="fa fa-edit"></i>修改</a></td>                                </tr><tr>
                                    <td>80</td>
                                    <td>q3w456</td>
                                    <td>23456</td>
                                    <td><img src="./1492958506.jpeg" id="litpic"></td>
                                    <td>超级管理员</td>
                                    <td>0</td>
                                    <td>127.0.0.1</td>
                                    <td>1970-01-01 08:00:00</td>
                                                                            <td><a class="btn btn-primary btn-rounded" href="javascript:changeAdmin(80)" id="status80"><i class="fa fa-check"></i>正常</a></td>
                                                                                                                    <td><a class="btn btn-danger btn-rounded" href="javascript:delAdmin(80)"><i class="fa fa-trash"></i>删除</a> <a class="btn btn-info btn-rounded" href="http://www.1611.com/index.php/Admin/admin/edit/id/80.html"><i class="fa fa-edit"></i>修改</a></td>                                </tr><tr>
                                    <td>79</td>
                                    <td>123456</td>
                                    <td>1234</td>
                                    <td><img src="./1492957696.jpeg" id="litpic"></td>
                                    <td>超级管理员</td>
                                    <td>0</td>
                                    <td>127.0.0.1</td>
                                    <td>1970-01-01 08:00:00</td>
                                                                            <td><a class="btn btn-primary btn-rounded" href="javascript:changeAdmin(79)" id="status79"><i class="fa fa-check"></i>正常</a></td>
                                                                                                                    <td><a class="btn btn-danger btn-rounded" href="javascript:delAdmin(79)"><i class="fa fa-trash"></i>删除</a> <a class="btn btn-info btn-rounded" href="http://www.1611.com/index.php/Admin/admin/edit/id/79.html"><i class="fa fa-edit"></i>修改</a></td>                                </tr><tr>
                                    <td>78</td>
                                    <td>234567</td>
                                    <td>34567</td>
                                    <td><img src="./1492957590.jpeg" id="litpic"></td>
                                    <td>文章管理员</td>
                                    <td>0</td>
                                    <td>127.0.0.1</td>
                                    <td>1970-01-01 08:00:00</td>
                                                                            <td><a class="btn btn-primary btn-rounded" href="javascript:changeAdmin(78)" id="status78"><i class="fa fa-check"></i>正常</a></td>
                                                                                                                    <td><a class="btn btn-danger btn-rounded" href="javascript:delAdmin(78)"><i class="fa fa-trash"></i>删除</a> <a class="btn btn-info btn-rounded" href="http://www.1611.com/index.php/Admin/admin/edit/id/78.html"><i class="fa fa-edit"></i>修改</a></td>                                </tr>                        </tbody>
                    </table>
                    <!--<div class="page">-->
                        <!---->
                    <!--</div>-->
                    <div id="page" style="text-align: center"><div name="laypage1.3" class="laypage_main laypageskin_default" id="laypage_0"><span class="laypage_curr">1</span><a href="javascript:;" data-page="2">2</a><a href="javascript:;" data-page="3">3</a><a href="javascript:;" data-page="4">4</a><a href="javascript:;" class="laypage_next" data-page="2">下一页</a><span class="laypage_total"><label>到第</label><input type="number" min="1" onkeyup="this.value=this.value.replace(/\D/, &#39;&#39;);" class="laypage_skip"><label>页</label><button type="button" class="laypage_btn">确定</button></span></div></div>
                </div>
            </div>
        </div>
    </div>

</div>
<script src="./jquery.min.js"></script>
<script src="./bootstrap.min.js"></script>
<script src="./jquery.peity.min.js"></script>
<script src="./content.min.js"></script>
<script src="./icheck.min.js"></script>
<script src="./peity-demo.min.js"></script>
<script src="./sweetalert.min.js"></script>
<script src="./layer.min.js"></script>
<script src="./laypage.js"></script>

<script>
    $(document).ready(function(){$(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",})});
</script>
<script type="text/javascript" src="./stats" charset="UTF-8"></script>
<script>
    function delAdmin(id){
        var isConfirm;
        swal({
            title: "您确定要删除这条信息吗?",
            text: "删除后将无法恢复，请谨慎操作！",
            type: "warning",
            showCancelButton: true,
            confirmButtonColor: "#DD6B55",
            confirmButtonText: "是的，我就是要删除！",
            cancelButtonText: "师傅刹一脚...",
            closeOnConfirm: false,
            closeOnCancel: false
        },
        function(isConfirm){
            if (isConfirm) {
                $.ajax({
                    type:"post",
                    url:"/index.php/Admin/admin/adminDel.html",
                    dataType:"json",
                    data:{"id":id}
                }).done(function(data){
                    swal({
                        title:data.title,
                        text:data.msg,
                        type:data.status,
                        confirmButtonText: "OK！"
                    },function(){
                        window.location.href="/index.php/Admin/Admin/index.html";
                    });
//                    swal(data.title, data.msg, data.status),
//                            goto();
                }).error(function(data) {
                    swal("OMG", "删除操作失败了!", "error")
                });
            } else {
                swal("已取消", "您取消了删除操作！", "error");
            }
        });
        function goto(){
            window.location.href="/index.php/Admin/Admin/index.html";
        }
    }
    function changeAdmin(id){
        var object = $('#status'+id);
        var font = $('#font'+id);
        $.post(
            "/index.php/Admin/Admin/adminChange.html",
            {id:id},
            function(data){
                if(data.status == 0){
                    layer.msg(data.msg, {icon: 5,time: 1000});
                }else{
                    if(data.state > 0){
                        object.html("<i class='fa fa-check'></i>正常</a>").removeClass("btn btn-danger btn-rounded").addClass("btn btn-primary btn-rounded");
                        layer.msg(data.msg, {icon: 6,time: 1000});
                    }else{
                        object.html("<i class='fa fa-remove'></i>禁用</a>").removeClass("btn btn-primary btn-rounded").addClass("btn btn-danger btn-rounded");
                        layer.msg(data.msg, {icon: 6,time: 1000});
                    }
                }
            },'json'
        );
    }
    $(function(){
        var inquery = '';
        laypage({
            cont:page,
            pages:4,
            skip:1,
            curr:function(){
                var page = location.search.match(/page=(\d+)/);
                return page ? page[1] : 1;
            }(),
            jump: function(e, first){
                //得到了当前页，用于向服务端请求对应数据
                if(!first){ //一定要加此判断，否则初始时会无限刷新
                    location.href = '?inquery='+inquery+'&page='+e.curr;
                }
            }
        });
    })

</script>



<!-- Mirrored from www.zi-han.net/theme/hplus/table_basic.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:20:01 GMT -->
</body></html>